package com.yupi.mianshiya.constant;

public interface RedisConstant {
    String USER_SIGN_IN_REDIS_KEY_PREFIX = "user:signins";

    /**
     *
     * @param year 年份
     * @param userId 用户id
     * @return 拼接好的 Redis Key
     */
    static String getUserSignInRedisKey(int year, long userId){
            return String.format("%s:%s:%S",USER_SIGN_IN_REDIS_KEY_PREFIX, year, userId);
    }
}
